package org.jeecg.board.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 报表预统计表
 * @Author: LiCY
 * @Date:   2025-01-03
 * @Version: V1.0
 */
@Data
@TableName("rpt_statisticans_value")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="rpt_statisticans_value对象", description="报表预统计表")
public class RptStatisticansValue implements Serializable {
    /**数据名称*/
    @Excel(name = "数据名称", width = 15)
    @ApiModelProperty(value = "数据名称")
    @MppMultiId
    @TableField(value = "name")
    private String name;
    /**类型*/
    @Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "类型")
    @MppMultiId
    @TableField(value = "typ")
    private String typ;
    /**工单号*/
    @Excel(name = "工单号", width = 15)
    @ApiModelProperty(value = "工单号")
    @MppMultiId
    @TableField(value = "woid")
    private String woid;
    /**产品型号*/
    @Excel(name = "产品型号", width = 15)
    @ApiModelProperty(value = "产品型号")
    @MppMultiId
    @TableField(value = "partno")
    private String partno;
    /**产线*/
    @Excel(name = "产线", width = 15)
    @ApiModelProperty(value = "产线")
    @MppMultiId
    @TableField(value = "line")
    private String line;
    /**数值*/
    @Excel(name = "数值", width = 15)
    @ApiModelProperty(value = "数值")
    private Double value;

    @ApiModelProperty(value = "班组时间")
    @MppMultiId
    @TableField(value = "shift_date")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date shiftDate;

    @ApiModelProperty(value = "班组")
    @MppMultiId
    @TableField(value = "shift")
    private String shift;

    /**更新时间*/
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
